package cn.lyh.FoodSystem.Entity;


import cn.lyh.base.BaseEntity;
import com.alibaba.fastjson2.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.*;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@Entity
@Table(name = "tab_study")
@org.hibernate.annotations.Table(appliesTo = "tab_study",comment = "学习时长记录表")
public class Study extends BaseEntity {

    @Id
    @GeneratedValue
    @Column(name = "id")
    private Integer id;
    @Column(name = "userId")
    private String userId;//用户di
    @Column(name = "realName")
    private String realName;//真实姓名
    @Column(name = "courseId")
    private String courseId;//课程ID
    @Column(name = "speed")
    private String speed;//观看进度
    @Column(name = "status")
    private String status;//看完状态
    @Column(name = "startTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;//观看时间
    @Column(name = "visitLong")
    private String visitLong;//观看时长
    @Column(name = "totalLong")
    private String totalLong;//总时长
    @Transient
    private ArrayList SpeedList;
    @Transient
    private Object user;
}
